<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/26
 * Time: 8:59
 */

namespace common\result;


class ObjectCompareResult
{
    /**
     * @var boolean 是否对象属性有变化
     */
    public $isChanged;

    /**
     * @var string 变化内容
     */
    public $message;

    /**
     * @var string
     */
    public $old_content;

    /**
     * @var string
     */
    public $new_content;

    /**
     * ObjectCompareResult constructor.
     * @param bool $isChanged
     * @param string $message
     */
    public function __construct($isChanged = true, $message = null, $old_content = null, $new_content = null)
    {
        $this->isChanged = $isChanged;
        $this->message = $message;
        $this->old_content = $old_content;
        $this->new_content = $new_content;
    }
}